$(document).ready(function(){
    $('#salarioVal').maskMoney({symbol:'',decimal:',',precision:2, thousands:'.', showSymbol:false, maxlength:12});
    $('#salarioVal').filter(function(){return $(this).val() != '';}).keypress();
    
    $("#horaEntrada1").autotab({maxlength: 2, target: "minutoEntrada1", ignore: myPlaceHolder }).defaultValue("");
    $("#minutoEntrada1").autotab({maxlength: 2, target: "horaSaida1", ignore: myPlaceHolder }).defaultValue("");
    $("#horaSaida1").autotab({maxlength: 2, target: "minutoSaida1", ignore: myPlaceHolder }).defaultValue("");
    $("#minutoSaida1").autotab({maxlength: 2, target: "vag_infoAdicionais", ignore: myPlaceHolder }).defaultValue("");

    $("#horaEntrada2").autotab({maxlength: 2, target: "minutoEntrada2", ignore: myPlaceHolder }).defaultValue("");
    $("#minutoEntrada2").autotab({maxlength: 2, target: "horaSaida2", ignore: myPlaceHolder }).defaultValue("");
    $("#horaSaida2").autotab({maxlength: 2, target: "minutoSaida2", ignore: myPlaceHolder }).defaultValue("");
    $("#minutoSaida2").autotab({maxlength: 2, target: "horaEntradaSabado", ignore: myPlaceHolder }).defaultValue("");
    $("#horaEntradaSabado").autotab({maxlength: 2, target: "minutoEntradaSabado", ignore: myPlaceHolder }).defaultValue("");
    $("#minutoEntradaSabado").autotab({maxlength: 2, target: "horaSaidaSabado", ignore: myPlaceHolder }).defaultValue("");
    $("#horaSaidaSabado").autotab({maxlength: 2, target: "minutoSaidaSabado", ignore: myPlaceHolder }).defaultValue("");
    $("#minutoSaidaSabado").autotab({maxlength: 2, target: "vag_infoAdicionais", ignore: myPlaceHolder }).defaultValue("");
     
    $("#horaEntrada4").autotab({maxlength: 2, target: "minutoEntrada4", ignore: myPlaceHolder }).defaultValue("");
    $("#minutoEntrada4").autotab({maxlength: 2, target: "horaSaida4", ignore: myPlaceHolder }).defaultValue("");
    $("#horaSaida4").autotab({maxlength: 2, target: "minutoSaida4", ignore: myPlaceHolder }).defaultValue("");
    $("#minutoSaida4").autotab({maxlength: 2, target: "vag_infoAdicionais", ignore: myPlaceHolder }).defaultValue(""); 
    
    $("#vag_codigoInterno").autotab({maxlength: 50, target: "vag_atividades", ignore: myPlaceHolder }).defaultValue("")
});

